package com.cyy.cn.client;

import com.cyy.cn.client.impl.LabelClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 标签服务客户端
 */
@FeignClient(value = "chenyu-base",fallback = LabelClientImpl.class)
public interface LabelClient {

    @RequestMapping(value="/label/{id}",method = RequestMethod.GET)
    public Result findById(@PathVariable("id") String id);
}
